new Promise(test).then(function(result) {
    console.log("成功" + result)
}).catch(function(reason) {
    console.log("失败" + reason)
})